$(function() {
	$(document).scrollTop(0);
	tabId=$("#tabContent > .tab-pane.active").attr("id");
	$("#navTabs").find("li").each(function(i){
		$(this).on("click", function () {
		tabId=$("#tabContent > .tab-pane.active").attr("id");
         });
	});
	var payMethodContent='';
	for(var o in diction["P00020001"]){
		payMethodContent+=diction["P00020001"][o].DICVALUE+'&nbsp'+diction["P00020001"][o].DICDESC+'&nbsp';
	}
	$('#' + tabId +' .payMethodSpan').html(payMethodContent);
	//获取参数
	var patient = $("#tabContent > .tab-pane.active").data();
	
	var patientId = patient.patientId;//病人ID
	getPatient(patientId);
});

/**
 * 填充数据
 * @param patientId
 */
function getPatient(patientId) {
	var patientversion= sysConfig.MED_TYPE;
	if (patientversion == 'CUS') {
		$("#" + tabId + " #myTabContent-qg").hide();
		$("#" + tabId + " #myTabContent-bj").hide();
		$("#" + tabId + " #myTabContent-other").show();
		$.post(contextPath + "/YiZhengHome/getPatientInfo.dhc", {
			patientId : patientId,
			patientversion : 'CUS'
		}).done(function(result) {
			if (result.data) {
				var cost = result.data.cost;// 获取费用
				var costType = result.data.costType;// 获取费用分类
				var patient = result.data.patient; // 获取首页表中信息
				var maindiagnosis = result.data.maindiagnosis[0];// 获取主要诊断
				var diagnosis = result.data.diagnosis;// 获取诊断
				var operation = result.data.operation; // 获取手术
				var otherOperation = result.data.otherOperation;// 获取其他手术
				// 动态加载费用div布局
				drawCostDiv(costType, "other");
				// 填充首页数据
				fillpatient(patient, "other");
				// 填充诊断表格数据
				filldiagnosis(maindiagnosis, diagnosis, "other");
				// 填充手术表格数据
				filloperation(operation, otherOperation, "other");
				// 填充动态加载费用数据
				fillcostother(cost);
			}
		});
	} else if (patientversion == 'BJ') {
		$("#" + tabId + " #myTabContent-qg").hide();
		$("#" + tabId + " #myTabContent-other").hide();
		$("#" + tabId + " #myTabContent-bj").show();
		$.post(contextPath + "/YiZhengHome/getPatientInfo.dhc", {
			patientId : patientId,
			patientversion : "BJ"
		}).done(function(result) {
			if (result.data) {
				var cost = result.data.costMap;// 获取费用
				var patient = result.data.patient; // 获取首页表中信息
				var maindiagnosis = result.data.maindiagnosis[0];// 获取主要诊断
				var diagnosis = result.data.diagnosis;// 获取诊断
				var operation = result.data.operation;// 获取手术
				var otherOperation = result.data.otherOperation;// 获取其他手术
				var operate = result.data.operate[0];// 获取操作
				var otherOperate = result.data.otherOperate;// 获取其他操作
				fillpatient(patient, "bj");
				fillIntensive(patient, "bj");
				// 填充北京版诊断信息
				filldiagnosis_bj(maindiagnosis, diagnosis);
				// 填充手术表格数据
				filloperation(operation, otherOperation, "bj");
				filloprate(operate, otherOperate);// 填充操作表格数据
				// 填充动态加载费用数据
				fillcostbj(cost);
			}
		});
	} else if (patientversion == 'CN') {
		$("#" + tabId + " #myTabContent-bj").hide();
		$("#" + tabId + " #myTabContent-other").hide();
		$("#" + tabId + " #myTabContent-qg").show();
		$.post(contextPath + "/YiZhengHome/getPatientInfo.dhc", {
			patientId : patientId,
			patientversion : "CN"
		}).done(function(result) {
			if (result.data) {
				var cost = result.data.costMap;// 获取费用
				var patient = result.data.patient; // 获取首页表中信息
				var maindiagnosis = result.data.maindiagnosis[0];// 获取主要诊断
				var diagnosis = result.data.diagnosis;// 获取诊断
				var operation = result.data.operation; // 获取手术
				var otherOperation = result.data.otherOperation;// 获取其他手术
				var appendpage=result.data.appendpage;//获取山西病案首页附页信息
				// 填充首页数据
				fillpatient(patient, "qg");
				// 填充诊断表格数据
				filldiagnosis(maindiagnosis, diagnosis, "qg");
				// 填充手术表格数据
				filloperation(operation, otherOperation, "qg");
				// 填充费用数据
				fillcostqg(cost);
				// 填充山西省首页附页信息（中铁17局）
				if (appendpage != undefined && appendpage !=null && appendpage!="") {
					$("#"+tabId+" #appendpageId-qg").css('display','block');
					fillappendpageqg(appendpage, "qg");
				}
			}
		});
	}
	//填充山西省首页附页信息（中铁17局）
	function fillappendpageqg(appendpage, ver) {
		if (appendpage != undefined && appendpage !=null && appendpage!="") {
			$("#" + tabId + " #inHospQK-" + ver).html(findAppendpageInfo(appendpage, "P00380001", "-"));
			$("#" + tabId + " #inHospConfirm_year-" + ver).html(findAppendpageInfo(appendpage, "INSUREYEAR", "-"));
			$("#" + tabId + " #inHospConfirm_month-" + ver).html(findAppendpageInfo(appendpage, "INSUREMONTH", "-"));
			$("#" + tabId + " #inHospConfirm_day-" + ver).html(findAppendpageInfo(appendpage, "INSUREDAY", "-"));
			$("#" + tabId + " #mainDiagInHospQK-" + ver).html(findAppendpageInfo(appendpage, "PD0301", "-"));
			$("#" + tabId + " #inHospInfectQK-" + ver).html(findAppendpageInfo(appendpage, "P90051001", "-"));
			$("#" + tabId + " #inHospInfectQKDesc-" + ver).html(findAppendpageInfo(appendpage, "P90052000", "&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;"));
			$("#" + tabId + " #diagMatchAQK-" + ver).html(findAppendpageInfo(appendpage, "P00440001", "-"));
			$("#" + tabId + " #diagMatchBQK-" + ver).html(findAppendpageInfo(appendpage, "P00450001", "-"));
			$("#" + tabId + " #diagMatchCQK-" + ver).html(findAppendpageInfo(appendpage, "P00460001", "-"));
			$("#" + tabId + " #diagMatchDQK-" + ver).html(findAppendpageInfo(appendpage, "P00470001", "-"));
			$("#" + tabId + " #diagMatchEQK-" + ver).html(findAppendpageInfo(appendpage, "P00475001", "-"));
			$("#" + tabId + " #diagMatchFQK-" + ver).html(findAppendpageInfo(appendpage, "P00480001", "-"));
			$("#" + tabId + " #inHospIsLCLJ-" + ver).html(findAppendpageInfo(appendpage, "P90080001", "-"));
			$("#" + tabId + " #inHospLCLJDesc-" + ver).html(findAppendpageInfo(appendpage, "P00330000", "&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;"));
			$("#" + tabId + " #inHospIsDBZ-" + ver).html(findAppendpageInfo(appendpage, "P00335000", "-"));
			$("#" + tabId + " #inHospIsWZBR-" + ver).html(findAppendpageInfo(appendpage, "P00910000", "-"));
			$("#" + tabId + " #inHospQJcnt-" + ver).html(findAppendpageInfo(appendpage, "P00490000", "&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;"));
			$("#" + tabId + " #inHospQJCGcnt-" + ver).html(findAppendpageInfo(appendpage, "P00500000", "&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;"));
			$("#" + tabId + " #inHospIsBLTL-" + ver).html(findAppendpageInfo(appendpage, "P00336000", "-"));
			
			$("#" + tabId + " #patientSafeQuotaA-" + ver).html(findAppendpageInfo(appendpage, "P90200001", "-"));
			$("#" + tabId + " #patientSafeQuotaB-" + ver).html(findAppendpageInfo(appendpage, "P90210001", "-"));
			$("#" + tabId + " #patientSafeQuotaC-" + ver).html(findAppendpageInfo(appendpage, "P90215001", "-"));
			$("#" + tabId + " #patientSafeQuotaD-" + ver).html(findAppendpageInfo(appendpage, "P90220001", "-"));
			$("#" + tabId + " #patientSafeQuotaE-" + ver).html(findAppendpageInfo(appendpage, "P90230001", "-"));
			$("#" + tabId + " #patientSafeQuotaF-" + ver).html(findAppendpageInfo(appendpage, "P90240001", "-"));
			$("#" + tabId + " #patientSafeQuotaG-" + ver).html(findAppendpageInfo(appendpage, "P90250001", "-"));
			$("#" + tabId + " #patientSafeQuotaH-" + ver).html(findAppendpageInfo(appendpage, "P90260001", "-"));
			$("#" + tabId + " #patientSafeQuotaI-" + ver).html(findAppendpageInfo(appendpage, "P90270001", "-"));
			$("#" + tabId + " #patientSafeQuotaJ-" + ver).html(findAppendpageInfo(appendpage, "P90280001", "-"));
			$("#" + tabId + " #patientSafeQuotaK-" + ver).html(findAppendpageInfo(appendpage, "P90290001", "-"));
			$("#" + tabId + " #patientSafeQuotaL-" + ver).html(findAppendpageInfo(appendpage, "P90031001", "-"));
			$("#" + tabId + " #patientBfzDesc-" + ver).html(findAppendpageInfo(appendpage, "P90032000", "&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;"));
		}
	}
	//山西省首页附页信息公共方法
	function findAppendpageInfo(object,property,defaultVal){
		if(object[property] == undefined || object[property] == null ){
			return "";
		}else{
			return object[property];
		}
	}
	/**
	 * 填充其他以及其他首页数据
	 */
	function fillpatient(patient, ver) {
		if (patient != undefined) {
			$("#" + tabId + " #patientIdNum-" + ver).html(findObjectInfo(patient, "P00030000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));
			$("#" + tabId + " #patientName-" + ver).html("&nbsp;&nbsp;" + findObjectInfo(patient, "P00060000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "&nbsp;&nbsp;");
			$("#" + tabId + " #ipCount-" + ver).html(findObjectInfo(patient, "P00040000"), 0, "&nbsp;&nbsp;—&nbsp;&nbsp;");

			$("#" + tabId + " #mrNo-" + ver).html(findObjectInfo(patient, "P00050000"), 0, "&nbsp;&nbsp;—&nbsp;&nbsp;");

			$("#" + tabId + " #dayOfBirth-" + ver).html(findObjectInfo(patient, "P00080000"), 0, "&nbsp;&nbsp;—&nbsp;&nbsp;");

			$("#" + tabId + " #ageYear-" + ver).html("&nbsp;&nbsp;" + findObjectInfo(patient, "P00090000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "&nbsp;&nbsp;");

			$("#" + tabId + " #newborndays-" + ver).html(findObjectInfo(patient, "NEWBORN_DAYS", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #newbornweight-" + ver).html(findObjectInfo(patient, "P00110000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #newbornInHospweight-" + ver).html(findObjectInfo(patient, "P00120000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inDate-" + ver).html(findObjectInfo(patient, "P00250000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inDep-" + ver).html(findObjectInfo(patient, "P00260000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inWard-" + ver).html(findObjectInfo(patient, "P00270000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outDate-" + ver).html("&nbsp;&nbsp;" + findObjectInfo(patient, "P00290000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outDep-" + ver).html("&nbsp;&nbsp;" + findObjectInfo(patient, "P00300000", 0, "—") + "&nbsp;&nbsp;");

			$("#" + tabId + " #outWard-" + ver).html(findObjectInfo(patient, "OUT_WARD", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #transDep-" + ver).html(findObjectInfo(patient, "TRANS_DEP", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #coder-" + ver).html(findObjectInfo(patient, "CODER", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #medOrg_code-" + ver).html(findObjectInfo(patient, "ORGANIZATION_CODE", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #payment-" + ver).html(findObjectInfo(patient, "P00020001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #sex-" + ver).html(findObjectInfo(patient, "P00070001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #marriage-" + ver).html(findObjectInfo(patient, "P00180000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inWay-" + ver).html(findObjectInfo(patient, "P00230001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #nationality-" + ver).html(findObjectInfo(patient, "P00100000", 1, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outWay-" + ver).html(findObjectInfo(patient, "P00620001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #out_inDate-" + ver).html("&nbsp;&nbsp;" + findObjectInfo(patient, "P00320000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "&nbsp;&nbsp;");

			$("#" + tabId + " #depMaster-" + ver).html(findObjectInfo(patient, "P00600100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #protomedicus-" + ver).html(findObjectInfo(patient, "P00600200", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #physician-" + ver).html(findObjectInfo(patient, "P00600300", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #residentDoctor-" + ver).html(findObjectInfo(patient, "P00600400", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #nurse-" + ver).html(findObjectInfo(patient, "P00600500", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #physicianLearn-" + ver).html(findObjectInfo(patient, "P00600600", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #intern-" + ver).html(findObjectInfo(patient, "P00600800", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #costamount-" + ver).html(findObjectInfo(patient, "P00800000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #costself-" + ver).html(patient["P00810000"] == null ? 0 : (patient["P00810000"].code==null?0:patient["P00810000"].code));

			$("#" + tabId + " #ventTime-" + ver).html(findObjectInfo(patient, "P90120201", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #birth_province-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00130100")));

			$("#" + tabId + " #birth_city-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00130200")));

			$("#" + tabId + " #birth_town-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00130300")));

			$("#" + tabId + " #origin_province-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00140100")));

			$("#" + tabId + " #origin_city-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00140200")));

			$("#" + tabId + " #nation-" + ver).html(findObjectInfo(patient, "P00150000", 1, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #identitycard-" + ver).html(findObjectInfo(patient, "P00160000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #profession-" + ver).html(findObjectInfo(patient, "P00170000", 1, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #address_province-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00190100")));

			$("#" + tabId + " #address_city-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00190200")));

			$("#" + tabId + " #address_town-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00190300")));

			$("#" + tabId + " #registered_province-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00200100")));

			$("#" + tabId + " #registered_city-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00200200")));

			$("#" + tabId + " #registered_town-" + ver).html(findAddrDesc(findObjectInfo(patient, "P00200300")));

			$("#" + tabId + " #working_address-" + ver).html(findObjectInfo(patient, "P00210000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #working_tel-" + ver).html(findObjectInfo(patient, "P00210100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #working_email-" + ver).html(findObjectInfo(patient, "P00210200", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #address_email-" + ver).html(findObjectInfo(patient, "P00190600", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #contact_name-" + ver).html(findObjectInfo(patient, "P00220000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #contact_relationship-" + ver).html(findObjectInfo(patient, "P00220100", 1, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #contact_address-" + ver).html(findObjectInfo(patient, "P00220200", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #contact_tel-" + ver).html(findObjectInfo(patient, "P00220300", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #registered_email-" + ver).html(findObjectInfo(patient, "P00200500", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #address_tel-" + ver).html(findObjectInfo(patient, "P00190500", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #pathCode-" + ver).html(findObjectInfo(patient, "P00400100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #risk_time-" + ver).html(findObjectInfo(patient, "P00490000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #risk_suctime-" + ver).html(findObjectInfo(patient, "P00500000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #follow_up-" + ver).html(findObjectInfo(patient, "P00550000", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #follow_time-" + ver).html(findObjectInfo(patient, "FOLLOW_TIME", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #drg_allergy-" + ver).html(findObjectInfo(patient, "P00510000", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #allergy_drug-" + ver).html(findObjectInfo(patient, "P00520000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #body_check-" + ver).html(findObjectInfo(patient, "P00530000", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #ABO_type-" + ver).html(findObjectInfo(patient, "P00570001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #RH_type-" + ver).html(findObjectInfo(patient, "P00580001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #quality-" + ver).html(findObjectInfo(patient, "P00610001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_doc-" + ver).html(findObjectInfo(patient, "P00610100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_nur-" + ver).html(findObjectInfo(patient, "P00610200", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_time-" + ver).html(findObjectInfo(patient, "P00610300", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #31newplain-" + ver).html(findObjectInfo(patient, "P00630001", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #31newplainaim-" + ver).html(findObjectInfo(patient, "P00630100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimdayst-" + ver).html(findObjectInfo(patient, "P00640001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimhhst-" + ver).html(findObjectInfo(patient, "P00640002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimmmst-" + ver).html(findObjectInfo(patient, "P00640003", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimdayen-" + ver).html(findObjectInfo(patient, "P00650001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimhhen-" + ver).html(findObjectInfo(patient, "P00650002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dimmmen-" + ver).html(findObjectInfo(patient, "P00650003", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #ageMonth-" + ver).html(findObjectInfo(patient, "P00090001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #ageDay-" + ver).html(findObjectInfo(patient, "P00090002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #pargroupDoc-" + ver).html(findObjectInfo(patient, "P00601000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outReason-" + ver).html(findObjectInfo(patient, "P00900000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #pathInterence-" + ver).html(findObjectInfo(patient, "P00400101", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #dangerCase-" + ver).html(findObjectInfo(patient, "P00910000", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			$("#" + tabId + " #difCase-" + ver).html(findObjectInfo(patient, "P00920000", 0, "&nbsp;&nbsp;-&nbsp;&nbsp;"));

			/*
			 * if ((patient[88]) != null) { $("#" + tabId + "
			 * #intensiveName-"+ver).html(findObjectInfo(patient,"P00930000",0,"&nbsp;&nbsp;—&nbsp;&nbsp;")); }
			 * if ((patient[89]) != null) { $("#" + tabId + "
			 * #intensiveInTime-"+ver).html(findObjectInfo(patient,"P00930001",0,"&nbsp;&nbsp;—&nbsp;&nbsp;")); }
			 * if ((patient[90]) != null) { $("#" + tabId + "
			 * #intensiveOutTime-"+ver).html(findObjectInfo(patient,"P00930002",0,"&nbsp;&nbsp;—&nbsp;&nbsp;")); }
			 */
			$("#" + tabId + " #accepthospnamea-" + ver).html(findObjectInfo(patient, "P00620100", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #accepthospnameb-" + ver).html(findObjectInfo(patient, "P00620200", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #tumourT-" + ver).html(findObjectInfo(patient, "P00950000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #tumourN-" + ver).html(findObjectInfo(patient, "P00950001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #tumourM-" + ver).html(findObjectInfo(patient, "P00950002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #lifeCoreIn-" + ver).html(findObjectInfo(patient, "P00960000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #lifeCoreOut-" + ver).html(findObjectInfo(patient, "P00960001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #opDiagnosis-" + ver).html(findObjectInfo(patient, "P00940001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #opDiagnosisCode-" + ver).html(findObjectInfo(patient, "P00940002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #medOrg-" + ver).html(findObjectInfo(patient, "P00010000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inYear-" + ver).html(findObjectInfo(patient, "IN_YEAR", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inMonth-" + ver).html(findObjectInfo(patient, "IN_MONTH", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inDay-" + ver).html(findObjectInfo(patient, "IN_DAY", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #inHour-" + ver).html(findObjectInfo(patient, "IN_HOUR", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outYear-" + ver).html(findObjectInfo(patient, "OUT_YEAR", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outMonth-" + ver).html(findObjectInfo(patient, "OUT_MONTH", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outDay-" + ver).html(findObjectInfo(patient, "OUT_DAY", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #outHour-" + ver).html(findObjectInfo(patient, "OUT_HOUR", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #illCode-" + ver).html(findObjectInfo(patient, "OUTREASONCODE", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #pathInterencecode-" + ver).html(findObjectInfo(patient, "P00400401", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_year-" + ver).html(findObjectInfo(patient, "QC_YEAR", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_month-" + ver).html(findObjectInfo(patient, "QC_MONTH", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));

			$("#" + tabId + " #quality_day-" + ver).html(findObjectInfo(patient, "QUALITY_DAY", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;"));
		}
	}

	/**
	 * 填充重症监护室信息
	 */
	function fillIntensive(patient, ver) {
		var tbodys = $("<tbody id='intensiveBody'></tbody>");
		tbodys.appendTo($("#" + tabId + " #intensiveTable-" + ver));//
		var strs = "";// 重症监护室填充
		strs += "<tr>";
		strs += "<td>" + findObjectInfo(patient, "P00930000", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "</td>";

		strs += "<td>" + findObjectInfo(patient, "P00930001", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "</td>";

		strs += "<td>" + findObjectInfo(patient, "P00930002", 0, "&nbsp;&nbsp;—&nbsp;&nbsp;") + "</td>";

		strs += "</tr>";
		tbodys.append(strs);
	}

	/**
	 * 填充手术数据
	 */
	function filloperation(operation, otherOperation, patientversion) {
		var tbodys = $("<tbody id='operationBody'></tbody>");
		tbodys.appendTo($("#" + tabId + " #operationTable-" + patientversion));// 手术表
		var strs = "";// 手术操作填充
		if (operation == null && otherOperation == null) {
			strs += "<tr>";
			strs += "<td  colspan='10'  align='center' valign='middle'>无数据</td>";
			strs += "</tr>";
		} else {
			strs += "<tr>";
			if (operation != null) {
				strs += "<td><strong>主要手术：</strong>" + findObjectInfo(operation, "OPER_M_CODE") + "</td>";
				strs += "<td>" + findObjectInfo(operation, "OPER_M_DATE") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_LEVEL") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_DESC") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_DOC") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_ASSI1") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_ASSI2") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_CURE_LEVEL") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_ANAES_WAY") + "</td>";

				strs += "<td>" + findObjectInfo(operation, "OPER_M_ANAES_DOC") + "</td>";

			}
			strs += "</tr>";
			for (var i = 0; i < otherOperation.length; i++) {
				if (i < otherOperation.length) {
					strs += "<tr>";
					strs += "<td><strong>其他手术：</strong>" + findObjectInfo(otherOperation[i], "OPER_O_CODE") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_DATE") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_LEVEL") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_DESC") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_DOC") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_ASSI1") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_ASSI2") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_CURE_LEVEL") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_ANAES_WAY") + "</td>";

					strs += "<td>" + findObjectInfo(otherOperation[i], "OPER_O_ANAES_DOC") + "</td>";

					strs += "</tr>";
				}
			}
		}
		tbodys.append(strs);
	}
	/**
	 * 填充诊断表格数据
	 */
	function filldiagnosis(maindiagnosis, diagnosis, patientversion) {
		var tbody = $("<tbody id='diagnosisBody'></tbody>");
		tbody.appendTo($("#" + tabId + " #diagnosisTable-" + patientversion));
		var str = "";// 填充诊断数据
		if (maindiagnosis == null && diagnosis == null) {
			str += "<tr>";
			str += "<td  colspan='6'  align='center' valign='middle' >无数据</td>";
			str += "</tr>";
		} else {
			str += "<tr>";
			if (maindiagnosis != null) {
				if (maindiagnosis[0] == null) {
					str += "<td><strong>主要诊断：</strong></td>";
				} else {
					str += "<td><strong>主要诊断：</strong>" + maindiagnosis[0] + "</td>";// 诊断描述
				}
				if (maindiagnosis[1] == null) {
					str += "<td></td>";
				} else {
					str += "<td>" + maindiagnosis[1] + "</td>";// 诊断编码
				}
				if (maindiagnosis[2] == null) {
					str += "<td></td>";// 入院病情
				} else {
					str += "<td>" + maindiagnosis[2] + "</td>";// 入院病情
				}
			}else{
				str += "<td><strong>主要诊断：</strong></td>";
				str += "<td></td>";
				str += "<td></td>";// 入院病情
			}
			if (diagnosis.length != 0) {
				// 是否有其他诊断
				if (diagnosis[0][0] == null) {
				}
				str += "<td><strong>其他诊断：</strong>" + diagnosis[0][0] + "</td>";
				str += "<td>" + diagnosis[0][1] + "</td>";
				if (diagnosis[0][2] == null) {
					str += "<td></td>";
				} else {
					str += "<td>" + diagnosis[0][2] + "</td>";
				}
			} else {
				str += "<td align='center'>&nbsp;</td>";
				str += "<td align='center'>&nbsp;</td>";
				str += "<td width='10'></td>";
			}
			str += "</tr>";
			for (var i = 1; i < diagnosis.length; i++) {
				if (i < diagnosis.length) {
					str += "<tr>";
					str += "<td><strong>其他诊断：</strong>" + diagnosis[i][0] + "</td>";
					str += "<td>" + diagnosis[i][1] + "</td>";
					if (diagnosis[i][2] == null) {
						str += "<td></td>";
					} else {
						str += "<td>" + diagnosis[i][2] + "</td>";
					}
					i++;
					if (i < diagnosis.length) {
						str += "<td><strong>其他诊断：</strong>" + diagnosis[i][0] + "</td>";
						str += "<td>" + diagnosis[i][1] + "</td>";
						if (diagnosis[i][2] == null) {
							str += "<td></td>";
						} else {
							str += "<td>" + diagnosis[i][2] + "</td>";
						}
					} else {
						str += "<td align='center'>&nbsp;</td>";
						str += "<td align='center'>&nbsp;</td>";
						str += "<td width='10'></td>";
					}
					str += "</tr>";
				}
			}
		}
		str += "<tr>" + "<td colspan='6'>入院病情：1.有，2.临床未确定，3.情况不明，4.无 </td>";
		str += "</tr>";
		tbody.append(str);
	}

	/*
	 * 
	 * 北京诊断
	 * 
	 */
	function filldiagnosis_bj(maindiagnosis, diagnosis) {
		var tbody = $("<tbody id='diagnosisBody-bj'></tbody>");
		tbody.appendTo($("#" + tabId + " #diagnosisTable-bj"));
		var str = "";// 填充诊断数据
		if (maindiagnosis != null) {
			str += "<tr>";
			if (maindiagnosis[0] == null) {
				str += "<td><strong>主要诊断：</strong></td>";
			} else {
				str += "<td><strong>主要诊断：</strong>" + maindiagnosis[0] + "</td>";
			}
			if (maindiagnosis[2] == null) {
				str += "<td>-</td>";// 入院病情
			} else {
				str += "<td>" + maindiagnosis[2] + "</td>";// 入院病情
			}
			if (maindiagnosis[3] == null) {
				str += "<td>-</td>";// 疗效
			} else {
				str += "<td>" + maindiagnosis[3] + "</td>";// 入院病情
			}
			if (maindiagnosis[1] == null) {// 疾病编码
				str += "<td>-</td>";
			} else {
				str += "<td>" + maindiagnosis[1] + "</td>";
			}
			str += "</tr>";
		}
		for (var i = 0; i < diagnosis.length; i++) {
			str += "<tr>";
			str += "<td><strong>其他诊断：</strong>" + diagnosis[i][0] + "</td>";
			if ( diagnosis[i] == null || diagnosis[i][2] == null ) {// 入院病情
				str += "<td>-</td>";
			} else {
				str += "<td>" + diagnosis[i][2] + "</td>";
			}
			if ( diagnosis[i] == null || diagnosis[i][3] == null ) {// 疗效
				str += "<td>-</td>";
			} else {
				str += "<td>" + diagnosis[i][3] + "</td>";
			}
			if (maindiagnosis == null || maindiagnosis[1] == null) {// 疾病编码
				str += "<td>-</td>";
			} else {
				if ( diagnosis[i] == null || diagnosis[i][1] == null ) {
					str += "<td>-</td>";
				}else{
					str += "<td>" + diagnosis[i][1] + "</td>";					
				}				
			}
			str += "</tr>";
		}
		str += "<tr>" + "<td colspan='4'>入院病情：1.有，2.临床未确定，3.情况不明，4.无 </td>";
		str += "</tr>";
		tbody.append(str);
	}

	/**
	 * 首页版本自定义时--拼接费用布局
	 */
	function drawCostDiv(costtype, divf) {
		var strcost = "<div>" + "<div class='col-xs-12'><strong>住院费用（元）：总费用</strong>_<u id='costamount-other'>&nbsp;—&nbsp;&nbsp;</u>_（自付金额：<u id='costself-other'>&nbsp;—&nbsp;&nbsp;</u>）<strong> </strong></div>"
				+ "</div>";
		for (var b = 0; b < costtype.length; b++) {
			strcost += "<div>";
			strcost += "<div  class='col-xs-12'>";
			strcost += "<div class=row>";
			strcost += "<div class='col-xs-1.5'><strong>" + costtype[b][0] + "." + costtype[b][1] + ":</strong> </div>";
			var costcatecode = costtype[b][0];
			$.ajax({
				url : contextPath + "/YiZhengHome/getCostnameInfo.dhc",
				type : "post",
				dataType : "json",
				data : {
					'costsubcode' : costcatecode
				},
				async : false,
				success : function(result) {
					var costname = result.data.costname;
					for (var a = 0; a < costname.length; a++) {
						if (a != 0 && a % 3 == 0) {
							strcost += "<div class='col-xs-2'>&nbsp;&nbsp;&nbsp;</div>";
							strcost += "<div class='col-xs-3'>(" + costname[a][0] + ")" + costname[a][1] + ":<u id='" + costname[a][0] + "" + divf + "'>&nbsp;&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;&nbsp;</u></div>";
						} else {
							strcost += "<div class='col-xs-3'>(" + costname[a][0] + ")" + costname[a][1] + ":<u id='" + costname[a][0] + "" + divf + "'>&nbsp;&nbsp;&nbsp;&nbsp;—&nbsp;&nbsp;&nbsp;&nbsp;</u></div>";
						}
					}
				}
			});
			strcost += "</div>" + "</div>" + "</div>";

		}
		$("#" + tabId + " #costid-other").append(strcost);
	}
	/**
	 * 填充其他动态加载费用数据
	 */
	function fillcostother(cost) {
		for (var i = 0; i < cost.length; i++) {
			if (cost[i][1] != null) {
				$("#" + tabId + " #" + cost[i][0] + "other").html(cost[i][1].toFixed(2));
			}
		}
	}
	/**
	 * 填充全国版费用数据
	 */
	function fillcostqg(cost) {
		var tmpstr = "";
		var tmpCost = "";

		tmpstr = cost["一般医疗服务费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "一般医疗服务费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(0).html(tmpstr);
		tmpCost = cost["一般医疗服务费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(0).html(tmpCost.toFixed(2));

		tmpstr = cost["一般治疗操作费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "一般治疗操作费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(1).html(tmpstr);
		tmpCost = cost["一般治疗操作费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(1).html(tmpCost.toFixed(2));

		tmpstr = cost["护理费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "护理费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(2).html(tmpstr);
		tmpCost = cost["护理费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(2).html(tmpCost.toFixed(2));

		tmpstr = cost["综合医疗服务类其他费用"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "综合医疗服务类其他费用";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(3).html(tmpstr);
		tmpCost = cost["综合医疗服务类其他费用"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(3).html(tmpCost.toFixed(2));

		tmpstr = cost["病理诊断费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "病理诊断费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(4).html(tmpstr);
		tmpCost = cost["病理诊断费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(4).html(tmpCost.toFixed(2));

		tmpstr = cost["实验室诊断费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "实验室诊断费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(5).html(tmpstr);
		tmpCost = cost["实验室诊断费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(5).html(tmpCost.toFixed(2));

		tmpstr = cost["影像学诊断费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "影像学诊断费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(6).html(tmpstr);
		tmpCost = cost["影像学诊断费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(6).html(tmpCost.toFixed(2));

		tmpstr = cost["临床诊断项目费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "临床诊断项目费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(7).html(tmpstr);
		tmpCost = cost["临床诊断项目费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(7).html(tmpCost.toFixed(2));

		tmpstr = cost["非手术治疗项目费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "非手术治疗项目费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(8).html(tmpstr);
		tmpCost = cost["非手术治疗项目费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(8).html(tmpCost.toFixed(2));

		tmpstr = cost["临床物理治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "临床物理治疗费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(9).html(tmpstr);
		tmpCost = cost["临床物理治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(9).html(tmpCost.toFixed(2));

		tmpstr = cost["手术治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "手术治疗费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(10).html(tmpstr);
		tmpCost = cost["手术治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(10).html(tmpCost.toFixed(2));

		tmpstr = cost["麻醉费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "麻醉费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(11).html(tmpstr);
		tmpCost = cost["麻醉费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(11).html(tmpCost.toFixed(2));

		tmpstr = cost["手术费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "手术费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(12).html(tmpstr);
		tmpCost = cost["手术费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(12).html(tmpCost.toFixed(2));

		tmpstr = cost["康复费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "康复费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(13).html(tmpstr);
		tmpCost = cost["康复费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(13).html(tmpCost.toFixed(2));

		tmpstr = cost["中医治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中医治疗费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(14).html(tmpstr);
		tmpCost = cost["中医治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(14).html(tmpCost.toFixed(2));

		tmpstr = cost["西药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "西药费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(15).html(tmpstr);
		tmpCost = cost["西药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(15).html(tmpCost.toFixed(2));

		tmpstr = cost["抗菌药物费用"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "抗菌药物费用";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(16).html(tmpstr);
		tmpCost = cost["抗菌药物费用"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(16).html(tmpCost.toFixed(2));

		tmpstr = cost["中成药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中成药费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(17).html(tmpstr);
		tmpCost = cost["中成药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(17).html(tmpCost.toFixed(2));

		tmpstr = cost["中草药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中草药费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(18).html(tmpstr);
		tmpCost = cost["中草药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(18).html(tmpCost.toFixed(2));

		tmpstr = cost["血费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "血费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(19).html(tmpstr);
		tmpCost = cost["血费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(19).html(tmpCost.toFixed(2));

		tmpstr = cost["白蛋白类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "白蛋白类制品费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(20).html(tmpstr);
		tmpCost = cost["白蛋白类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(20).html(tmpCost.toFixed(2));

		tmpstr = cost["球蛋白类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "球蛋白类制品费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(21).html(tmpstr);
		tmpCost = cost["球蛋白类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(21).html(tmpCost.toFixed(2));

		tmpstr = cost["凝血因子类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "凝血因子类制品费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(22).html(tmpstr);
		tmpCost = cost["凝血因子类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(22).html(tmpCost.toFixed(2));

		tmpstr = cost["细胞因子类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "细胞因子类制品费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(23).html(tmpstr);
		tmpCost = cost["细胞因子类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(23).html(tmpCost.toFixed(2));

		tmpstr = cost["检查用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "检查用一次性医用材料费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(24).html(tmpstr);
		tmpCost = cost["检查用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(24).html(tmpCost.toFixed(2));

		tmpstr = cost["治疗用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "治疗用一次性医用材料费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(25).html(tmpstr);
		tmpCost = cost["治疗用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(25).html(tmpCost.toFixed(2));

		tmpstr = cost["手术用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "手术用一次性医用材料费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(26).html(tmpstr);
		tmpCost = cost["手术用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(26).html(tmpCost.toFixed(2));

		tmpstr = cost["其他费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "其他费";
		}
		$("#" + tabId + " #costid-qg .title-qg").eq(27).html(tmpstr);
		tmpCost = cost["其他费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-qg .cost-qg").eq(27).html(tmpCost.toFixed(2));

	}
	/**
	 * 填充北京版费用数据
	 */
	function fillcostbj(cost) {
		var tmpstr = "";
		var tmpCost = "";

		tmpstr = cost["诊察（诊疗）费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "诊察（诊疗）费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(0).html(tmpstr);
		tmpCost = cost["诊察（诊疗）费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(0).html(tmpCost.toFixed(2));

		tmpstr = cost["挂号费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "挂号费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(1).html(tmpstr);
		tmpCost = cost["挂号费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(1).html(tmpCost.toFixed(2));

		tmpstr = cost["床位费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "床位费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(2).html(tmpstr);
		tmpCost = cost["床位费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(2).html(tmpCost.toFixed(2));

		tmpstr = cost["一般治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "一般治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(3).html(tmpstr);
		tmpCost = cost["一般治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(3).html(tmpCost.toFixed(2));

		tmpstr = cost["护理治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "护理治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(4).html(tmpstr);
		tmpCost = cost["护理治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(4).html(tmpCost.toFixed(2));

		tmpstr = cost["监护及辅助呼吸费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "监护及辅助呼吸费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(5).html(tmpstr);
		tmpCost = cost["监护及辅助呼吸费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(5).html(tmpCost.toFixed(2));

		tmpstr = cost["输氧费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "输氧费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(6).html(tmpstr);
		tmpCost = cost["输氧费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(6).html(tmpCost.toFixed(2));

		tmpstr = cost["护理费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "护理费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(7).html(tmpstr);
		tmpCost = cost["护理费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(7).html(tmpCost.toFixed(2));

		tmpstr = cost["其他费用"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "其他费用";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(8).html(tmpstr);
		tmpCost = cost["其他费用"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(8).html(tmpCost.toFixed(2));

		tmpstr = cost["病理费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "病理费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(9).html(tmpstr);
		tmpCost = cost["病理费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(9).html(tmpCost.toFixed(2));

		tmpstr = cost["化验费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "化验费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(10).html(tmpstr);
		tmpCost = cost["化验费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(10).html(tmpCost.toFixed(2));

		tmpstr = cost["核素检查"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "核素检查";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(11).html(tmpstr);
		tmpCost = cost["核素检查"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(11).html(tmpCost.toFixed(2));

		tmpstr = cost["超声费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "超声费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(12).html(tmpstr);
		tmpCost = cost["超声费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(12).html(tmpCost.toFixed(2));

		tmpstr = cost["放射费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "放射费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(13).html(tmpstr);
		tmpCost = cost["放射费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(13).html(tmpCost.toFixed(2));

		tmpstr = cost["一般检查费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "一般检查费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(14).html(tmpstr);
		tmpCost = cost["一般检查费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(14).html(tmpCost.toFixed(2));

		tmpstr = cost["临床物理治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "临床物理治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(15).html(tmpstr);
		tmpCost = cost["临床物理治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(15).html(tmpCost.toFixed(2));

		tmpstr = cost["核素治疗"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "核素治疗";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(16).html(tmpstr);
		tmpCost = cost["核素治疗"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(16).html(tmpCost.toFixed(2));

		tmpstr = cost["特殊治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "特殊治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(17).html(tmpstr);
		tmpCost = cost["特殊治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(17).html(tmpCost.toFixed(2));

		tmpstr = cost["精神治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "精神治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(18).html(tmpstr);
		tmpCost = cost["精神治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(18).html(tmpCost.toFixed(2));

		tmpstr = cost["麻醉费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "麻醉费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(19).html(tmpstr);
		tmpCost = cost["麻醉费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(19).html(tmpCost.toFixed(2));

		tmpstr = cost["手术费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "手术费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(20).html(tmpstr);
		tmpCost = cost["手术费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(20).html(tmpCost.toFixed(2));

		tmpstr = cost["介入治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "介入治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(21).html(tmpstr);
		tmpCost = cost["介入治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(21).html(tmpCost.toFixed(2));

		tmpstr = cost["接生费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "接生费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(22).html(tmpstr);
		tmpCost = cost["接生费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(22).html(tmpCost.toFixed(2));

		tmpstr = cost["康复治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "康复治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(23).html(tmpstr);
		tmpCost = cost["康复治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(23).html(tmpCost.toFixed(2));

		tmpstr = cost["中医治疗费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中医治疗费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(24).html(tmpstr);
		tmpCost = cost["中医治疗费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(24).html(tmpCost.toFixed(2));

		tmpstr = cost["抗菌药物费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "抗菌药物费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(25).html(tmpstr);
		tmpCost = cost["抗菌药物费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(25).html(tmpCost.toFixed(2));

		tmpstr = cost["西药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "西药费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(26).html(tmpstr);
		tmpCost = cost["西药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(26).html(tmpCost.toFixed(2));

		tmpstr = cost["中成药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中成药费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(27).html(tmpstr);
		tmpCost = cost["中成药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(27).html(tmpCost.toFixed(2));

		tmpstr = cost["中草药费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "中草药费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(28).html(tmpstr);
		tmpCost = cost["中草药费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(28).html(tmpCost.toFixed(2));

		tmpstr = cost["输血费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "输血费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(29).html(tmpstr);
		tmpCost = cost["输血费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(29).html(tmpCost.toFixed(2));

		tmpstr = cost["白蛋白类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "白蛋白类制品费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(30).html(tmpstr);
		tmpCost = cost["白蛋白类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(30).html(tmpCost.toFixed(2));

		tmpstr = cost["球蛋白类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "球蛋白类制品费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(31).html(tmpstr);
		tmpCost = cost["球蛋白类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(31).html(tmpCost.toFixed(2));

		tmpstr = cost["凝血因子类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "凝血因子类制品费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(32).html(tmpstr);
		tmpCost = cost["凝血因子类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(32).html(tmpCost.toFixed(2));

		tmpstr = cost["细胞因子类制品费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "细胞因子类制品费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(33).html(tmpstr);
		tmpCost = cost["细胞因子类制品费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(33).html(tmpCost.toFixed(2));

		tmpstr = cost["检查用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "检查用一次性医用材料费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(34).html(tmpstr);
		tmpCost = cost["检查用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(34).html(tmpCost.toFixed(2));

		tmpstr = cost["治疗用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "治疗用一次性医用材料费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(35).html(tmpstr);
		tmpCost = cost["治疗用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(35).html(tmpCost.toFixed(2));

		tmpstr = cost["介入用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "介入用一次性医用材料费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(36).html(tmpstr);
		tmpCost = cost["介入用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(36).html(tmpCost.toFixed(2));

		tmpstr = cost["手术用一次性医用材料费"][3];
		if (tmpstr == null || tmpstr == "") {
			tmpstr = "手术用一次性医用材料费";
		}
		$("#" + tabId + " #costid-bj .title-bj").eq(37).html(tmpstr);
		tmpCost = cost["手术用一次性医用材料费"][1];
		if (tmpCost != null)
			$("#" + tabId + " #costid-bj .cost-bj").eq(37).html(tmpCost.toFixed(2));
	}
	/*
	 *//**
		 * 填充其他动态加载费用数据
		 */
	/*
	 * function fillcostother(cost){ var str=""; for(var i in cost ){ str+="<div
	 * class='col-xs-4'>"+cost[i]+"</div>" } $('#'+tabId+'
	 * #costdatile_other').html(str) }
	 *//**
		 * 填充全国版费用数据
		 */
	/*
	 * function fillcostqg(cost) { if(cost.length>0){ var data=cost[0];
	 * $('#'+tabId+' .costdatil_CN .cost-cn').each(function(i){
	 * $(this).html(data[i]==null?0:data[i]); }); }else{ $('#'+tabId+'
	 * .costdatil_CN .cost-cn').each(function(i){
	 * $(this).html('&#12288;&#12288;'); }); }
	 *  }
	 * 
	 *//**
		 * 填充北京版费用数据
		 */
	/*
	 * function fillcostbj(cost) { if(cost.length>0){ var data=cost[0];
	 * $('#'+tabId+' .costdatil_BJ .cost-bj').each(function(i){
	 * $(this).html(data[i]==null?0:data[i]); }); }else{ $('#'+tabId+'
	 * .costdatil_BJ .cost-bj').each(function(i){
	 * $(this).html('&#12288;&#12288;'); }); }
	 *  }
	 */
	function filloprate(operate, otherOperate) {

		var obodys = $("<tbody id='operateBody'></tbody>");
		obodys.appendTo($("#" + tabId + " #operateTable-bj"));// 操作表
		var strs = "";// 操作填充
		if (operate == null && otherOperate == null) {
			strs += "<tr>";
			strs += "<td  colspan='10'  align='center' valign='middle'>无数据</td>";
			strs += "</tr>";
		} else {
			strs += "<tr>";
			if (operate != null) {
				if (operate[0] != null) {
					strs += "<td><strong>主要操作：</strong>" + operate[0] + "</td>";
				} else {
					strs += "<td><strong>主要操作：</strong></td>";
				}
				if (operate[1] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[1] + "</td>";
				}
				if (operate[2] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[2] + "</td>";
				}
				if (operate[3] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[3] + "</td>";
				}
				if (operate[4] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[4] + "</td>";
				}
				if (operate[5] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[5] + "</td>";
				}
				if (operate[6] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[6] + "</td>";
				}
				if (operate[7] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[7] + "</td>";
				}
				if (operate[8] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[8] + "</td>";
				}
				if (operate[9] == null) {
					strs += "<td></td>";
				} else {
					strs += "<td>" + operate[9] + "</td>";
				}
			}
			strs += "</tr>";
			for (var i = 0; i < otherOperate.length; i++) {
				if (i < otherOperate.length) {
					strs += "<tr>";
					if (otherOperate[i][0] == null) {
						strs += "<td><strong>其他操作：</strong></td>";
					} else {
						strs += "<td><strong>其他操作：</strong>" + otherOperate[i][0] + "</td>";
					}
					if (otherOperate[i][1] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][1] + "</td>";
					}
					if (otherOperate[i][2] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][2] + "</td>";
					}
					if (otherOperate[i][3] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][3] + "</td>";
					}
					if (otherOperate[i][4] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][4] + "</td>";
					}
					if (otherOperate[i][5] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][5] + "</td>";
					}
					if (otherOperate[i][6] != null) {
						strs += "<td>" + otherOperate[i][6] + "</td>";
					} else {
						strs += "<td></td>";
					}
					if (otherOperate[i][7] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][7] + "</td>";
					}
					if (otherOperate[i][8] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][8] + "</td>";
					}
					if (otherOperate[i][9] == null) {
						strs += "<td></td>";
					} else {
						strs += "<td>" + otherOperate[i][9] + "</td>";
					}
					strs += "</tr>";
				}
			}
		}
		obodys.append(strs);

	}
}

/**
 * 读取对象属性值
 * @@param object 读取的对象
 * @@param property 属性
 * @@param isDesc  是否显示描述值
 * @@param defaultVal 没有数据时的默认返回值
 * @@returns
 * @any
 * @ Discription:
 * @qcPatientList.js
 */
function findObjectInfo(object,property,isDesc,defaultVal) {
	// 显示的字段是否存在
	if(object[property]) {
		// code 取值是否为空
		if(object[property].code || object[property].code == 0) {
			// 是否显示描述
			if(isDesc) {
				// 描述是否存在
				if(object[property].desc || object[property].desc == 0) {
					return object[property].desc ;
				} else {
					return object[property].code ;
				}
			} else {
				return object[property].code ;
			}
		} else {
			// 默认返回值
			if(defaultVal) {
				return defaultVal ;
			} else {
				return "" ;
			}
		}
	} else {
		// 默认返回值
		if(defaultVal) {
			return defaultVal ;
		} else {
			return "" ;
		}
	}
}

/**
 * 获取地址描述
 * @@param code
 * @void
 * @ Discription:
 * @qcPatientList.js
 */
function findAddrDesc(code) {
	// code是否是中文 
	var re= /[\u4E00-\u9FA5]/g;
	if (re.test(code)) { // 有中文
		return code ;
	} else { // 字符
		return nationalAdministrativeRegion[code] ;
	}
}
